package com.contexticon.mediaTest;

import javax.swing.JPanel;

import java.awt.Color;
import javax.swing.JButton;

import uk.co.caprica.vlcj.component.EmbeddedMediaPlayerComponent;

public class MediaPanel extends JPanel {

	/**
	 * Create the panel.
	 */
	
	private EmbeddedMediaPlayerComponent mediaPlayerComponent;
	
	public EmbeddedMediaPlayerComponent getMediaPlayerComponent() {
		return mediaPlayerComponent;
	}

	public void setMediaPlayerComponent(
			EmbeddedMediaPlayerComponent mediaPlayerComponent) {
		this.mediaPlayerComponent = mediaPlayerComponent;
	}

	public MediaPanel() {
		setBackground(Color.ORANGE);
		
		mediaPlayerComponent = new EmbeddedMediaPlayerComponent();
		mediaPlayerComponent.setSize(100, 60);
		add(mediaPlayerComponent);
		mediaPlayerComponent.setVisible(true);
	

	}
	
	public void  start () {
		mediaPlayerComponent.getMediaPlayer().playMedia("/Users/dglodzik/Movies/FrontRoll.flv");
	}
	

}
